package comxin;


import comxin.demo3.Methoddemoe;
import org.junit.Test;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

public class Student extends Methoddemoe {
    public Integer age;
    private String name;
    int id;

    public Student() {
    }

    private Student(Integer age) {
        this.age = age;
    }

    protected Student(String name) {
        this.name = name;
    }

     Student(int id) {
        this.id = id;
    }

    public Student(Integer age, String name, int id) {
        this.age = age;
        this.name = name;
        this.id = id;
    }
    public void show1(){
        System.out.println("show1执行了");
    }
    void show2(){
        System.out.println("show2执行了");
    }
    protected void show3(String name){
        System.out.println(name);
        System.out.println("show3执行了");
    }
    private void showx(){
        System.out.println("showx");
    }

//    @Override
//    public String toString() {
//        return "Student{" +
//                "age=" + age +
//                ", name='" + name + '\'' +
//                ", id=" + id +
//                '}';
//    }
public static void main(String[] args) throws Exception {
        Student student=new Student();
        student.method2();
//    method2();
}


}
